<template>
  <div class="home-swiper">
    <el-carousel class="home-carousel" height="4rem" :interval="3000">
      <el-carousel-item v-for="item of list" :key="item.id">
        <img :src="item.imgUrl" alt="">
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script setup>
defineProps({
  list: {
    type: Array,
    default: () => []
  }
})
</script>

<style lang="scss" scoped>
.home-swiper {
  width: 100%;
  height: 4rem;
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
</style>
